odhcp6c: set environment script to its current location
authorPaul Donald <[email protected]>
Fri, 21 Nov 2025 13:43:20 +0000 (14:43 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Sun, 23 Nov 2025 16:42:27 +0000 (17:42 +0100)
The calling script which sets odhcp6c up is currently passed -s as routine,
but synchronize its current location with its calling script, which should make
cross-referencing easier.

Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/odhcp6c/pull/126
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/odhcp6c.c

index 43ec72f27af39dc3b89e8469f6564fadfaa47f5b..0daee8e57f0826f525d4bf3ece5620aa5d9a6276 100644 (file)
@@ -166,7 +166,7 @@ int main(_o_unused int argc, char* const argv[])
        static struct in6_addr ifid = IN6ADDR_ANY_INIT;
        // Allocate resources
        const char *pidfile = NULL;
-       const char *script = "/usr/sbin/odhcp6c-update";
+       const char *script = "/lib/netifd/dhcpv6.script";
        ssize_t l;
        uint8_t buf[134], *o_data;
        char *optpos;
@@ -785,7 +785,7 @@ static int usage(void)
        "       -i <iface-id>   Use a custom interface identifier for RA handling\n"
        "       -r <options>    Options to be requested (comma-separated)\n"
        "       -R              Do not request any options except those specified with -r\n"
-       "       -s <script>     Status update script (/usr/sbin/odhcp6c-update)\n"
+       "       -s <script>     Status update script (/lib/netifd/dhcpv6.script)\n"
        "       -E              Only use UBUS event and disable status update script\n"
        "       -a              Don't send Accept Reconfigure option\n"
        "       -f              Don't send Client FQDN option\n"